<?php
/**
* 定时任务:重置每日转盘次数
*/
namespace app\common\command;
use think\Controller;
use think\Request;
use think\Db;


use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;

use app\api\validate\CheckValidate;
use app\api\model\TelCode;
use app\api\model\MemberTmp;
use app\api\model\Member;
use app\api\model\Base;

class setTurntableNum extends Command
{
    protected function configure()
    {
        $this->setName('setTurntableNum')->setDescription('Say Hello');
    }

    protected function execute(Input $input, Output $output)
    {
        $baseModel = new Base;
        $sys = $baseModel->getConfig();
        $num = $sys['ONDAY_TURNTABLE_NUM'];
        $sql = "update sy_member_info set onday_turntable_num = $num";
        $ret = Db::execute($sql);
        if(!$ret){
            $output->writeln(date("Y-m-d H:i:s")."重置每日转盘次数失败");
        }
    }

    

    
    /**
    * 重置每日收入收益
    */
    
    
    /**
    * 会员是否是新用户，优质客户
    */
}
